home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-02-13 | 17.0 KB | 460 lines | [TEXT/MPS ] |
- //# Copyright: © 1993 - 1995 by Apple Computer, Inc., all rights reserved.
-
-
- #ifndef _ERRORDEF_
- #define _ERRORDEF_
-
- #ifndef _ODTYPESB_
- #include "ODTypesB.idl"
- #endif
-
- #if defined(__SOMIDL__) && defined(EMIT_GLOBAL_CONSTANTS)
- #pragma somemittypes on
- #endif
-
- //#$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
- //# BEGIN-UNDER CONSTRUCTION
- //#$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
-
-
-
-
- //#$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
- //# END-UNDER CONSTRUCTION
- //#$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
-
- //#=============================================================================
- //# General Errors including ODObject
- //#=============================================================================
-
- const ODError kODMinError = -29849; // Range of OD err codes
- const ODError kODMinUsedError = -29764;
- const ODError kODMaxError = -29600;
-
- //# Currently unused slots: None
-
- const ODError kODNoError = 0;
-
-
- const ODError kODErrUndefined = -29600;
-
- //# NEW
- const ODError kODErrAlreadyNotified = -29601;
-
- const ODError kODErrIllegalNullInput = -29602;
-
- const ODError kODErrIllegalNullDispatchModuleInput = -29603;
- const ODError kODErrIllegalNullFacetInput = -29604;
- const ODError kODErrIllegalNullFrameInput = -29605;
- const ODError kODErrIllegalNullPartInput = -29606;
- const ODError kODErrIllegalNullTransformInput = -29607;
- const ODError kODErrIllegalNullStorageSystemInput = -29608;
- const ODError kODErrIllegalNullTokenInput = -29609;
- const ODError kODErrIllegalNullShapeInput = -29610;
- const ODError kODErrIllegalNullStorageUnitInput = -29611;
- const ODError kODErrIllegalNullPropertyInput = -29612;
- const ODError kODErrIllegalNullSUCursorInput = -29613;
- const ODError kODErrIllegalNullContainerInput = -29614;
- const ODError kODErrIllegalNullDocumentInput = -29615;
- const ODError kODErrIllegalNullDraftInput = -29616;
- const ODError kODErrIllegalNullValueTypeInput = -29617;
- const ODError kODErrIllegalNullIDInput = -29618;
-
- //# NEW
- const ODError kODErrValueOutOfRange = -29619;
-
- //# NEW
- const ODError kODErrInsufficientInfoInParams = -29620;
-
- const ODError kODErrObjectNotInitialized = -29621;
-
- const ODError kODErrOutOfMemory = -29622;
-
- const ODError kODErrNotImplemented = -29623;
-
- //# NEW
- const ODError kODErrInvalidPersistentFormat = -29624;
-
- const ODError kODErrSubClassResponsibility = -29625;
-
- //#------------------------------------------------------------------------------
- //# ODObject (& subclasses)
- //#------------------------------------------------------------------------------
-
- const ODError kODErrUnsupportedExtension = -29626;
- const ODError kODErrInvalidExtension = -29627;
- const ODError kODErrUnknownExtension = -29628;
- const ODError kODErrInvalidObjectType = -29629;
- const ODError kODErrInvalidPersistentObjectID = -29630;
- const ODError kODErrInvalidPersistentObject = -29631;
-
- //#------------------------------------------------------------------------------
- //# RefCountObject (& subclasses)
- //#------------------------------------------------------------------------------
-
- const ODError kODErrZeroRefCount = -29632;
-
- //# NEW
- const ODError kODErrRefCountGreaterThanZero = -29633;
-
- const ODError kODErrRefCountNotEqualOne = -29634;
-
- //#------------------------------------------------------------------------------
- //# Iterators
- //#------------------------------------------------------------------------------
-
- const ODError kODErrIteratorOutOfSync = -29635;
- const ODError kODErrIteratorNotInitialized = -29636;
- const ODError kODErrInvalidIterator = -29755;
-
- //#==============================================================================
- //# Parts Return These Errors
- //#==============================================================================
-
- const ODError kODErrCannotEmbed = -29637;
- const ODError kODErrDoesNotUndo = -29638;
- const ODError kODErrNoPromises = -29639;
- const ODError kODErrDoesNotDrop = -29640;
- const ODError kODErrDoesNotLink = -29641;
- const ODError kODErrPartNotWrapper = -29642;
-
- //#==============================================================================
- //# Core
- //#==============================================================================
-
- //#------------------------------------------------------------------------------
- //# ODNameSpaceManager, ODNameSpace
- //#------------------------------------------------------------------------------
-
- const ODError kODErrKeyAlreadyExists = -29643;
-
- //# NEW
- const ODError kODErrInvalidNSName = -29644;
-
- //# NEW
- const ODError kODErrInvalidNSType = -29645;
-
- //#------------------------------------------------------------------------------
- //# PartWrapper
- //#------------------------------------------------------------------------------
-
- const ODError kODErrPartInUse = -29646;
-
- //#------------------------------------------------------------------------------
- //# PartWrapper
- //#------------------------------------------------------------------------------
-
- //# NEW
- const ODError kODErrInvalidITextFormat = -29647;
-
- //#==============================================================================
- //# Imaging
- //#==============================================================================
-
- const ODError kODErrInvalidGraphicsSystem = -29648;
-
- //#------------------------------------------------------------------------------
- //# Shape
- //#------------------------------------------------------------------------------
-
- const ODError kODErrNoShapeGeometry = -29649; //# Shape has no polygon representation
-
- //#------------------------------------------------------------------------------
- //# Transform
- //#------------------------------------------------------------------------------
-
- const ODError kODErrTransformErr = -29650; //# Illegal op on xform
-
- //# NEW
- const ODError kODErrInvalidPlatformShape = -29651;
-
- //#==============================================================================
- //# Layout
- //#==============================================================================
-
- //#------------------------------------------------------------------------------
- //# Facet
- //#------------------------------------------------------------------------------
-
- const ODError kODErrCanvasNotFound = -29652;
-
- const ODError kODErrUnsupportedFramePositionCode = -29653;
-
- const ODError kODErrInvalidFacet = -29654;
-
- const ODError kODErrFacetNotFound = -29655;
- const ODError kODErrCanvasHasNoOwner = -29656;
-
- //#------------------------------------------------------------------------------
- //# Frame
- //#------------------------------------------------------------------------------
-
- const ODError kODErrNotRootFrame = -29657;
- const ODError kODErrIllegalRecursiveEmbedding = -29658;
-
- const ODError kODErrInvalidFrame = -29659;
-
- const ODError kODErrFrameHasFacets = -29660;
-
- const ODError kODErrInvalidLinkStatus = -29754;
-
- //#==============================================================================
- //# Memory
- //#==============================================================================
-
- const ODError kODErrInvalidBlock = -29661; //# bad heap or damaged object
-
- //#==============================================================================
- //# Messaging
- //#==============================================================================
-
- //#------------------------------------------------------------------------------
- //# Semantic Interface
- //#------------------------------------------------------------------------------
-
- //# NEW
- const ODError kODErrNotAnODToken = -29662;
-
- //# NEW
- const ODError kODErrCantCountFromLists = -29663;
-
- //#==============================================================================
- //# Storage
- //#==============================================================================
-
- const ODError kODErrUnsupportedPosCode = -29664;
- const ODError kODErrInvalidPermissions = -29665;
-
- const ODError kODErrCannotCreateContainer = -29666;
- const ODError kODErrCannotOpenContainer = -29667;
-
- //# NEW
- const ODError kODErrFatalContainerError = -29756;
-
- //# NEW
- const ODError kODErrContainerDoesNotExist = -29668;
-
- //# NEW
- const ODError kODErrDocumentDoesNotExist = -29669;
-
- //# NEW
- const ODError kODErrDraftDoesNotExist = -29670;
- const ODError kODErrDraftHasBeenDeleted = -29671;
-
- const ODError kODErrInvalidStorageUnit = -29672;
-
- //# NEW
- const ODError kODErrIllegalOperationOnSU = -29673;
-
- //# NEW
- const ODError kODErrSUValueDoesNotExist = -29674;
-
- //# NEW
- const ODError kODErrIllegalNonTopmostDraft = -29675;
-
- //# NEW
- const ODError kODErrNoSysTranslationFacility = -29680;
-
- //#------------------------------------------------------------------------------
- //# Storage Unit
- //#------------------------------------------------------------------------------
-
- const ODError kODErrNoValueAtThatIndex = -29676;
- const ODError kODErrCannotAddProperty = -29677;
-
- const ODError kODErrUnfocusedStorageUnit = -29678;
- const ODError kODErrInvalidStorageUnitRef = -29679;
- //#const ODError kODErrStorageUnitLocked = -29680;
- const ODError kODErrInvalidStorageUnitKey = -29681;
- const ODError kODErrStorageUnitNotLocked = -29682;
- const ODError kODErrInvalidDraftKey = -29683;
- const ODError kODErrCloningInProgress = -29684;
- const ODError kODErrValueIndexOutOfRange = -29685;
-
- //# NEW
- const ODError kODErrInvalidValueType = -29686;
-
- //# NEW
- const ODError kODErrIllegalPropertyName = -29687;
- const ODError kODErrPropertyDoesNotExist = -29688;
-
- //#------------------------------------------------------------------------------
- //# Draft
- //#------------------------------------------------------------------------------
-
- const ODError kODErrNoDraftProperties = -29689;
- const ODError kODErrCannotCreateFrame = -29690;
- const ODError kODErrCannotAcquireFrame = -29691;
- const ODError kODErrCannotCreatePart = -29692; //# I hate this error.
- // const ODError kODErrCannotAcquirePart = -29693; not used
- const ODError kODErrCannotCreateLink = -29694;
- const ODError kODErrCannotAcquireLink = -29695;
-
- const ODError kODErrInvalidID = -29696;
- const ODError kODErrCannotDeferClone = -29757;
- const ODError kODErrCannotCloneFrame = -29759;
- const ODError kODErrNullCMIDList = -29760;
- const ODError kODErrEmptyCMObjectIDOrList = -29761;
- const ODError kODErrCMObjectIDNotFound = -29762;
- const ODError kODErrNoCMIDList = -29763;
-
- const ODError kODErrInconsistentCloneKind = -29697;
- const ODError kODErrInvalidCloneKind = -29698;
- const ODError kODErrInvalidDestinationDraft = -29699;
- const ODError kODErrMoveIntoSelf = -29700;
- const ODError kODErrNullDestinationFrame = -29701;
-
- //#------------------------------------------------------------------------------
- //# Document
- //#------------------------------------------------------------------------------
-
- const ODError kODErrInvalidBelowDraft = -29702;
- const ODError kODErrCannotCollapseDrafts = -29704;
- const ODError kODErrNonEmptyDraft = -29705;
- const ODError kODErrNoPreviousDraft = -29706;
- const ODError kODErrOutstandingDraft = -29707;
- const ODError kODErrInvalidDraftID = -29708;
- const ODError kODErrCannotChangePermissions = -29709;
-
- //#------------------------------------------------------------------------------
- //# Storage System
- //#------------------------------------------------------------------------------
-
- const ODError kODErrContainerExists = -29710;
-
- //#------------------------------------------------------------------------------
- //# LinkSpec
- //#------------------------------------------------------------------------------
-
- const ODError kODErrCannotGetExternalLink = -29712;
- const ODError kODErrNoLinkSpecValue = -29713;
- const ODError kODErrUnknownLinkSpecVersion = -29714;
- const ODError kODErrCorruptLinkSpecValue = -29715;
-
- //#------------------------------------------------------------------------------
- //# Link
- //#------------------------------------------------------------------------------
-
- const ODError kODErrNotExportedLink = -29716;
- const ODError kODErrBrokenLink = -29717;
- const ODError kODErrCannotRevealLink = -29718;
- const ODError kODErrCorruptLink = -29719;
- const ODError kODErrLinkAlreadyExported = -29720;
- const ODError kODErrNoLinkContent = -29721;
- const ODError kODErrCannotRegisterDependent = -29722;
-
- //#------------------------------------------------------------------------------
- //# LinkSource
- //#------------------------------------------------------------------------------
-
- const ODError kODErrNotImportedLink = -29723;
- const ODError kODErrInvalidLinkKey = -29724;
- const ODError kODErrBrokenLinkSource = -29725;
- const ODError kODErrCorruptLinkSource = -29726;
- const ODError kODErrCannotFindLinkSourceEdition = -29727; // Cannot locate source of cross document link because edition file does not exist
- const ODError kODErrCannotFindLinkSource = -29728; // Cannot locate source of cross document link
- const ODError kODErrAlreadyImportedLink = -29729; // Cannot create link due to Internal error
- const ODError kODErrUnknownUpdateID = -29730;
- const ODError kODErrCannotEstablishLink = -29731;
-
- //#------------------------------------------------------------------------------
- //# LinkManager
- //#------------------------------------------------------------------------------
-
- const ODError kODErrNoEditionManager = -29732;
- const ODError kODErrDocNotSaved = -29733;
-
- //#------------------------------------------------------------------------------
- //# Data Interchange Dialogs
- //#------------------------------------------------------------------------------
-
- const ODError kODErrNullFacetInput = -29734;
- const ODError kODErrNullLinkInfoInput = -29735;
- const ODError kODErrNullLinkInfoResultInput = -29736;
- const ODError kODErrNullPasteAsResultInput = -29737;
-
- //#------------------------------------------------------------------------------
- //# DragAndDrop
- //#------------------------------------------------------------------------------
-
- const ODError kODErrNoDragManager = -29738;
- const ODError kODErrNoDragSystemStorage = -29739;
- const ODError kODErrDragItemNotFound = -29740;
- const ODError kODErrCannotAllocateDragItem = -29741;
- const ODError kODErrUnknownDragImageType = -29742;
- const ODError kODErrDragTrackingException = -29743;
- const ODError kODErrCannotFulfillDragPromise = -29758;
-
- //#------------------------------------------------------------------------------
- //# Clipboard
- //#------------------------------------------------------------------------------
-
- const ODError kODErrBackgroundClipboardClear = -29744;
- const ODError kODErrIllegalClipboardCloneKind = -29745;
-
- //#==============================================================================
- //# UI
- //#==============================================================================
-
- //#------------------------------------------------------------------------------
- //# Arbitrator
- //#------------------------------------------------------------------------------
-
- const ODError kODErrFocusAlreadyRegistered = -29746;
- const ODError kODErrFocusNotRegistered = -29747;
-
- //#------------------------------------------------------------------------------
- //# Dispatcher
- //#------------------------------------------------------------------------------
-
- //#MOVED-const ODError kODErrIllegalNullDispatchModuleInput
-
- //#------------------------------------------------------------------------------
- //# MenuBar
- //#------------------------------------------------------------------------------
-
- #ifdef _PLATFORM_MACINTOSH_
- const ODError kODErrInvalidCommandID = -29748;
- #endif
-
- //#------------------------------------------------------------------------------
- //# Undo
- //#------------------------------------------------------------------------------
-
- const ODError kODErrCannotMarkAction = -29749;
- const ODError kODErrEmptyStack = -29750;
- const ODError kODErrNoBeginAction = -29751;
- const ODError kODErrCannotAddAction = -29752;
-
- //#------------------------------------------------------------------------------
- //# WindowState
- //#------------------------------------------------------------------------------
-
- const ODError kODErrCannotCreateWindow = -29753;
- const ODError kODErrWindowModuleAlreadySet = -29764;
-
-
- //#-----------------------------------------------------------------------------
- //# Platform-specific errors
- //#-----------------------------------------------------------------------------
-
- #ifdef _PLATFORM_MACINTOSH_
-
-
-
- #endif //# _PLATFORM_MACINTOSH_
-
-
- #if defined(__SOMIDL__) && defined(EMIT_GLOBAL_CONSTANTS)
- #pragma somemittypes off
- #endif
-
-
- module OpenDoc_Errors
- {
- const string OpenDoc_Errors_Version = "1.0.";
- };
-
- #endif //# _ERRORDEF_
-
-